package cn.felord.debezium.service;

import cn.felord.debezium.utils.String2AcsII16;

import java.math.BigDecimal;

import static cn.felord.debezium.utils.String2AcsII16.*;

public class TestMain {

    public static void main(String[] args) {
        System.out.println(String2AcsII16.string2hex_UP("C",8));
        System.out.println(String2AcsII16.int10to16(Integer.valueOf("100"),4).toUpperCase());
        System.out.println(String2AcsII16.int10to16(Integer.valueOf("200"),4).toUpperCase());
        System.out.println(String2AcsII16.string2hex_UP("Si",8));
        System.out.println(String2AcsII16.int10to16(Integer.valueOf("300"),4));
        System.out.println(String2AcsII16.int10to16(Integer.valueOf("400"),4));
        System.out.println(String2AcsII16.string2hex("Mn",8));
        System.out.println(String2AcsII16.int10to16(Integer.valueOf("500"),4));
        System.out.println(String2AcsII16.int10to16(Integer.valueOf("600"),4));


        System.out.println(String2AcsII16.int10to16(Integer.valueOf("60"),8));
        System.out.println(String2AcsII16.int10to16(Integer.valueOf("23264"),8));
        System.out.println("3839383630344334313932334430313735313339".length());

        System.out.println( String2AcsII16.int10to16_4(115)
                + String2AcsII16.int10to16_4(236)
                + String2AcsII16.int10to16_4(153)
                + String2AcsII16.int10to16_4(174));



//        System.out.println(String2AcsII16.hexToString("4b445443"));
//
//        System.out.println(String2AcsII16.hexToString("00484C43"));
//        System.out.println(String2AcsII16.hexToString("51485369"));
////        System.out.println(String2AcsII16.string2hex("回炉C%"));
//        System.out.println(new BigDecimal("90.500").multiply(new BigDecimal(100)).setScale(0).toString());

//
//        System.out.println(hexToString("38"));
//        System.out.println(hexToString("33"));
//        System.out.println(String2AcsII16.string2hex("8"));
//        String imi = "56545648495748555757525450495500";
//        System.out.println(imi.length());
//        System.out.println(" ============== ");
//        String ee = "";
//        for (int i = 0; i < imi.length(); i = i + 2) {
//            String s = int10to16_2(Integer.valueOf(imi.substring(i, i + 2)));
//            s = hexToString(s);
//            ee = ee + s;
//        }
//        System.out.println("==========");
//        System.out.println(ee);
//        System.out.println(ee.length());
    }
}
